<template>
  <web-view :src="path" @message="getMessage" />
</template>
<script lang="ts" setup>
  import { onLoad } from '@U/common'
  import { ref } from 'vue'

  const path = ref(`${import.meta.env.VITE_SHOUDAO_STUDIO_URL}/App/Meidao/Login`)
  onLoad((option: any) => {
    path.value += `?accountid=${option.accountid}`
  })
  const getMessage = (val:any) => {
    console.log('webview接收消息:', val)
  }
</script>
<style lang="less" scoped>
</style>
